#pragma once

#include "Task.h"

#define VIEW_UPDATE_TASK "view_update_task"

class CallbackTask : public Task
{
private:
	function<void()> callback;
public:
	virtual void execute();
public:
	CallbackTask(function<void()> callback, bool transient) : Task(VIEW_UPDATE_TASK, transient), callback(callback) {};
	~CallbackTask() {};
};

